package com.kingsoft.dc.khaos.module.spark.metadata.preprocess.transform

/**
  *
  * create by goosoog 2019/7/23.
  *
  */
case class JoinInfo(left_fields: List[JoinFieldInfo] = Nil,
                    right_fields: List[JoinFieldInfo] = Nil,
                    join_type: String = "",
                    join_keys: List[JoinConnectFieldInfo] = Nil,
                    advanced_options: AdvancedInfo = null)

case class JoinFieldInfo(field: String = "",
                         data_type: String = "")

case class JoinConnectFieldInfo(left: JoinFieldInfo = null,
                                right: JoinFieldInfo = null)

case class AdvancedInfo(partition: PartitionOption = null,
                        cache_option: CacheOption = null)

case class PartitionOption(on_off: Boolean,
                           nums: String = "")

case class CacheOption(on_off: Boolean,
                       option: String = "")